package model

import "time"

/*
原本是空投猫币，因此命名为Catcoin
现在用于记录STO参与及推荐关系。
*/
type Catcoin struct {
	Uid      int
	Addr     string
	InvCode  int
	InvCount int
	Puid     int
	Puids    string
	Ctime    time.Time
	Utime    time.Time
	Pledged  int
}

type CatcoinDto struct {
	Uid      int `gorm:"-;primary_key;AUTO_INCREMENT"`
	Addr     string
	InvCode  int
	InvCount int
	Puid     int
	Puids    string
	Ctime    time.Time
	Utime    time.Time
	Pledged  int
}

func (CatcoinDto) TableName() string {
	return "catcoins"
}
